fix: Linux dead sessions, cache network, SSH auth#26
Merged
ethannortharc merged 1 commit intomainfrom Mar 11, 2026
Merged
Conversation
1. Zellij dead session cleanup now uses exec_as_user instead of
exec_cmd — on Incus, exec_cmd runs as root which can't see
the non-root user's Zellij sessions.
2. post_cache_setup no longer calls wait_for_network — cached
images only need local file operations (git config, devbox binary),
not internet access.
3. SSH auth for `devbox code`:
- Fixed nixbld user detection in code.rs (same /home/ filter)
- Added services.openssh with PasswordAuthentication=false to
devbox-module.nix (was missing, only in standalone config)
- Forces key-based auth, preventing password prompts
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Three Linux-only fixes:
Dead Zellij sessions:
zellij delete-all-sessionsnow runs viaexec_as_userinstead ofexec_cmd. On Incus,exec_cmdruns as root which can't see the non-root user's Zellij sessions — dead sessions were never cleaned up.Cached image network failure:
post_cache_setupno longer callswait_for_network(). Cached images only need local operations (copy git config, devbox binary) — the network check was unnecessary and caused failures.SSH password prompt in
devbox code:/home/filter)services.opensshwithPasswordAuthentication = falseto devbox-module.nix (was missing — only existed in standalone configuration.nix)Test plan
cargo build+cargo test— all 71 tests passdevbox shellon Linux with dead session — should auto-clean and attachdevbox createfrom cache on Linux — should skip network checkdevbox codeon Linux — should connect without password prompt🤖 Generated with Claude Code